dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96bbe7c
)
RevisionTest: Fix getMockTitle()
author
Kunal Mehta
<legoktm@member.fsf.org>
Sun, 8 Apr 2018 00:36:54 +0000
(17:36 -0700)
committer
Kunal Mehta
<legoktm@member.fsf.org>
Sun, 8 Apr 2018 00:54:52 +0000
(17:54 -0700)
There's no such function "getModel", it's probably supposed to be
"getContentModel". PHPUnit 6 emits warnings for trying to mock functions
that don't exist.
Change-Id: I0e5434e48958a8b75238b2ebffb5c1dc4e60c864
tests/phpunit/includes/RevisionTest.php
patch
|
blob
|
history
diff --git
a/tests/phpunit/includes/RevisionTest.php
b/tests/phpunit/includes/RevisionTest.php
index
8b644c5
..
d928fb4
100644
(file)
--- a/
tests/phpunit/includes/RevisionTest.php
+++ b/
tests/phpunit/includes/RevisionTest.php
@@
-54,7
+54,7
@@
class RevisionTest extends MediaWikiTestCase {
->method( 'getArticleID' )
->will( $this->returnValue( 23 ) );
$mock->expects( $this->any() )
- ->method( 'getModel' )
+ ->method( 'get
Content
Model' )
->will( $this->returnValue( $model ) );
return $mock;